package pe.edu.upc.dsd.deal.service.impl;

import java.util.List;

import javax.jws.WebService;

import org.springframework.beans.factory.annotation.Autowired;

import pe.edu.upc.dsd.deal.dao.DealDao;
import pe.edu.upc.dsd.deal.model.Deal;
import pe.edu.upc.dsd.deal.service.DealService;

@WebService(endpointInterface = "pe.edu.upc.dsd.deal.service.DealService")
public class DealServiceImpl implements DealService {
	
	@Autowired
	private DealDao dealDao;

	public Deal find(String isbn) {
		return dealDao.find(isbn);
	}

	public void save(Deal deal) {
		dealDao.save(deal);
	}

	public void update(Deal deal) {
		dealDao.update(deal);
	}

	public void delete(Deal deal) {
		dealDao.delete(deal);
	}

	public List<Deal> findAll() {
		return dealDao.findAll();
	}

}
